package practice.w911;
/** Integer类型的演示 */
public class IntegerDemo {
    public static void main(String[] args) {
        int max = Integer.MAX_VALUE;
        int min = Integer.MIN_VALUE;
        System.out.println("int的最大值为:"+max+"，最小值为:"+min);
        long maxLong = Long.MAX_VALUE;
        long minLong = Long.MIN_VALUE;
        System.out.println("long的最大值为:"+maxLong+"，最小值为:"+minLong);
        String s1 = "40";
        int age = Integer.parseInt(s1);
        System.out.println(age);
        String s2 = "123.456";
        double price = Double.parseDouble(s2);
        System.out.println(price);


//        int max = Integer.MAX_VALUE;
//        int min = Integer.MIN_VALUE;
//        System.out.println("int的最大值为:"+max+"，最小值为:"+min);
//        long maxLong = Long.MAX_VALUE;
//        long minLong = Long.MIN_VALUE;
//        System.out.println("long的最大值为:"+maxLong+"，最小值为:"+minLong);
//        String s1 = "40";
//        int age = Integer.parseInt(s1);
//        System.out.println(age);
//        String s2 = "123.456";
//        double price = Double.parseDouble(s2);
//        System.out.println(price);

    }
}




















